<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>jdk | Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="win10配置jdk环境变量">
<meta property="og:type" content="article">
<meta property="og:title" content="jdk">
<meta property="og:url" content="https://renshengdian.gitee.io/renshengdian/2021/11/01/jdk/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="win10配置jdk环境变量">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101135343-367427561.png">
<meta property="og:image" content="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101135960-2127215352.png">
<meta property="og:image" content="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101136431-1389892956.png">
<meta property="og:image" content="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101136973-959509172.png">
<meta property="og:image" content="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101137541-1078073476.png">
<meta property="og:image" content="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101137965-83623570.png">
<meta property="og:image" content="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101138633-1497283510.png">
<meta property="og:image" content="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101139091-502458018.png">
<meta property="og:image" content="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101139451-1359065990.png">
<meta property="article:published_time" content="2021-11-01T11:26:02.000Z">
<meta property="article:modified_time" content="2021-11-02T05:43:17.451Z">
<meta property="article:author" content="John Doe">
<meta property="article:tag" content="jdk">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101135343-367427561.png">
  
    <link rel="alternate" href="/renshengdian/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/renshengdian/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/renshengdian/css/style.css">

  
    
<link rel="stylesheet" href="/renshengdian/fancybox/jquery.fancybox.min.css">

  
<meta name="generator" content="Hexo 5.4.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/renshengdian/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/renshengdian/">Home</a>
        
          <a class="main-nav-link" href="/renshengdian/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/renshengdian/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://renshengdian.gitee.io/renshengdian"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-jdk" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/renshengdian/2021/11/01/jdk/" class="article-date">
  <time class="dt-published" datetime="2021-11-01T11:26:02.000Z" itemprop="datePublished">2021-11-01</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      jdk
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h1 id="win10配置jdk环境变量"><a href="#win10配置jdk环境变量" class="headerlink" title="win10配置jdk环境变量"></a>win10配置jdk环境变量</h1><span id="more"></span>

<h2 id="1、首先要打开系统环境变量配置的页面。具体操作是：桌面上找到“此电脑”，然后右键-“属性”"><a href="#1、首先要打开系统环境变量配置的页面。具体操作是：桌面上找到“此电脑”，然后右键-“属性”" class="headerlink" title="1、首先要打开系统环境变量配置的页面。具体操作是：桌面上找到“此电脑”，然后右键 “属性”"></a>1、首先要打开系统环境变量配置的页面。具体操作是：桌面上找到“此电脑”，然后右键 “属性”</h2><p><img src="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101135343-367427561.png"></p>
<p>然后打开高级系统配置</p>
<p><img src="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101135960-2127215352.png"></p>
<h2 id="2、然后在弹出的界面打开环境变量"><a href="#2、然后在弹出的界面打开环境变量" class="headerlink" title="2、然后在弹出的界面打开环境变量"></a>2、然后在弹出的界面打开环境变量</h2><p><img src="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101136431-1389892956.png"></p>
<h2 id="3、在弹出的页面，“系统变量区域”点新建按钮"><a href="#3、在弹出的页面，“系统变量区域”点新建按钮" class="headerlink" title="3、在弹出的页面，“系统变量区域”点新建按钮"></a>3、在弹出的页面，“系统变量区域”点新建按钮</h2><p><img src="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101136973-959509172.png"></p>
<h2 id="4、在新建页面输入”变量名”位-JAVA-HOME-输入“变量值”为你安装的JDK地址，参考下图"><a href="#4、在新建页面输入”变量名”位-JAVA-HOME-输入“变量值”为你安装的JDK地址，参考下图" class="headerlink" title="4、在新建页面输入”变量名”位 JAVA_HOME,输入“变量值”为你安装的JDK地址，参考下图"></a>4、在新建页面输入”变量名”位 JAVA_HOME,输入“变量值”为你安装的JDK地址，参考下图</h2><p><img src="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101137541-1078073476.png"></p>
<h2 id="5、在系统变量区域，选择”新建按钮”输入”变量名”为CLASSPATH-输入”变量值”为-JAVA-HOME-lib-dt-jar-JAVA-HOME-lib-tools-jar"><a href="#5、在系统变量区域，选择”新建按钮”输入”变量名”为CLASSPATH-输入”变量值”为-JAVA-HOME-lib-dt-jar-JAVA-HOME-lib-tools-jar" class="headerlink" title="5、在系统变量区域，选择”新建按钮”输入”变量名”为CLASSPATH,输入”变量值”为.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar"></a>5、在系统变量区域，选择”新建按钮”输入”变量名”为CLASSPATH,输入”变量值”为.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar</h2><p><img src="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101137965-83623570.png"></p>
<h2 id="6、在系统变量区域，选择Path-点击下面的编辑按钮，在弹出的框中选择新建添加2行，一行输入-JAVA-HOME-bin，一行输入-JAVA-HOME-jre-bin"><a href="#6、在系统变量区域，选择Path-点击下面的编辑按钮，在弹出的框中选择新建添加2行，一行输入-JAVA-HOME-bin，一行输入-JAVA-HOME-jre-bin" class="headerlink" title="6、在系统变量区域，选择Path,点击下面的编辑按钮，在弹出的框中选择新建添加2行，一行输入%JAVA_HOME%\bin，一行输入%JAVA_HOME%\jre\bin"></a>6、在系统变量区域，选择Path,点击下面的编辑按钮，在弹出的框中选择新建添加2行，一行输入%JAVA_HOME%\bin，一行输入%JAVA_HOME%\jre\bin</h2><p><img src="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101138633-1497283510.png"></p>
<h2 id="7、在命令提示符中输入javac命令，出现如下图所示"><a href="#7、在命令提示符中输入javac命令，出现如下图所示" class="headerlink" title="7、在命令提示符中输入javac命令，出现如下图所示"></a>7、在命令提示符中输入javac命令，出现如下图所示</h2><p><img src="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101139091-502458018.png"></p>
<h2 id="8、在命令提示符中输入java-version-查询当前安装的jdk版本"><a href="#8、在命令提示符中输入java-version-查询当前安装的jdk版本" class="headerlink" title="8、在命令提示符中输入java -version 查询当前安装的jdk版本"></a>8、在命令提示符中输入java -version 查询当前安装的jdk版本</h2><p><img src="https://img2018.cnblogs.com/blog/1247358/201901/1247358-20190116101139451-1359065990.png"></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://renshengdian.gitee.io/renshengdian/2021/11/01/jdk/" data-id="ckwp2cvnk00055cun42j0at4b" data-title="jdk" class="article-share-link">Share</a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/renshengdian/tags/jdk/" rel="tag">jdk</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/renshengdian/2021/11/01/ide/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          ide
        
      </div>
    </a>
  
  
    <a href="/renshengdian/2021/11/01/%E9%85%8D%E7%BD%AEjdk%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">jdk</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/renshengdian/tags/ide/" rel="tag">ide</a></li><li class="tag-list-item"><a class="tag-list-link" href="/renshengdian/tags/jdk/" rel="tag">jdk</a></li><li class="tag-list-item"><a class="tag-list-link" href="/renshengdian/tags/mysql/" rel="tag">mysql</a></li><li class="tag-list-item"><a class="tag-list-link" href="/renshengdian/tags/tomcat/" rel="tag">tomcat</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/renshengdian/tags/ide/" style="font-size: 10px;">ide</a> <a href="/renshengdian/tags/jdk/" style="font-size: 20px;">jdk</a> <a href="/renshengdian/tags/mysql/" style="font-size: 10px;">mysql</a> <a href="/renshengdian/tags/tomcat/" style="font-size: 10px;">tomcat</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/renshengdian/archives/2021/12/">December 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/renshengdian/archives/2021/11/">November 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/renshengdian/archives/2021/10/">October 2021</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/renshengdian/2021/12/02/%E4%B8%AD%E7%A7%91%E8%BE%BE/">(no title)</a>
          </li>
        
          <li>
            <a href="/renshengdian/2021/11/17/Mybatis/">(no title)</a>
          </li>
        
          <li>
            <a href="/renshengdian/2021/11/05/ide%E7%A4%BE%E5%8C%BA%E7%89%88%E9%80%82%E9%85%8D%E4%B8%8D%E4%BA%86tomcat/">ide社区版适配不了tomcat</a>
          </li>
        
          <li>
            <a href="/renshengdian/2021/11/01/ide/">ide</a>
          </li>
        
          <li>
            <a href="/renshengdian/2021/11/01/jdk/">jdk</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2021 John Doe<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/renshengdian/" class="mobile-nav-link">Home</a>
  
    <a href="/renshengdian/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/renshengdian/js/jquery-3.4.1.min.js"></script>



  
<script src="/renshengdian/fancybox/jquery.fancybox.min.js"></script>




<script src="/renshengdian/js/script.js"></script>





  </div>
</body>
</html>